package com.stedu.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Controller;

@Configuration
//开启Spring的包扫描
@ComponentScan(basePackages = "com.stedu",
        excludeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = Controller.class))
//导入其他配置类
@Import({KaptchaConfig.class, MyBatisConfig.class})
public class MainConfig {
}
